import request from '@/util/request'
import api_config from '@/config/api_config'
//获取物业考勤列表
export function getAttendanceRecordList (data = {}) {
 return request({
  url: api_config.common.attendanceRecordList,
  method: 'post',
  data,
 }).then(response => response.data.data)
}
//获取社区服务统计
export function getCommunityService () {
 return request({
  url: api_config.common.communityService,
  method: 'get',
 }).then(response => response.data.data)
}
//获取维修进度列表
export function getMaintenanceList (data = {}) {
 return request({
  url: api_config.common.maintenanceList,
  method: 'post',
  data
 }).then(response => response.data.data)
}
//获取维修概况（保修数量、保修解决率）
export function getMaintenanceOverview () {
 return request({
  url: api_config.common.maintenanceOverview,
  method: 'get',
 }).then(response => response.data.data)
}
//获取社区信息列表
export function getCommunityInfoList (data = {}) {
 return request({
  url: api_config.common.communityInfoList,
  method: 'post',
  data
 }).then(response => response.data.data)
}
//获取居民注册数和车辆总数
export function getResidentAndVehicleNumbers () {
 return request({
  url: api_config.common.residentAndVehicleNumbers,
  method: 'get',
 }).then(response => response.data.data)
}
//获取存证类型和次数
export function getDepositsTypeAndNumbers () {
 return request({
  url: api_config.common.depositsTypeAndNumbers,
  method: 'get',
 }).then(response => response.data.data)
}
//获取维修管理待接单列表
export function getMaintenancePendingList (data = {}) {
 return request({
  url: api_config.common.maintenancePendingList,
  method: 'post',
  data
 }).then(response => response.data.data)
}
//获取所有住户信息
export function getHouseholdInformationList (data = {}) {
 return request({
  url: api_config.common.householdInformationList,
  method: 'post',
  data
 }).then(response => response.data.data)
}
//门禁
//获取（平广大楼|1号门）开门记录列表
export function getOpenLog (params = {}) {
 return request({
  url: api_config.pgdl.openLog,
  method: 'get',
  params
 }).then(response => response.data.data)
}
//获取硬件设备异常列表
export function getErrorLock (params = {}) {
 return request({
  url: api_config.pgdl.errorLock,
  method: 'get',
  params
 }).then(response => response.data.data)
}
//获取硬件设备概况
export function getAllLockCount (params = {}) {
 return request({
  url: api_config.pgdl.allLockCount,
  method: 'get',
  params
 }).then(response => response.data.data)
}
//消防通道堆物
//获取堆物事件处理率
export function getDeviceIncident () {
 return request({
  url: api_config.HeapServerAPI.deviceIncidentServlet,
  method: 'get'
 }).then(response => response.data)
}


//电梯
export function login (data) {
 return request({
  url: api_config.elevator.login,
  method: 'post',
  headers: { 'Content-Type': 'application/json'},
  data
 })
}
//获取电梯设备概况
export function getDeviceNum (data) {
 return request({
  url: api_config.elevator.getDeviceNum,
  method: 'post',
  headers: { 'Content-Type': 'application/json'},
  data
 }).then(response => response.data.data)
}
//获取电梯内详情数据
export function getLiftRealTimeData (data) {
 return request({
  url: api_config.elevator.getLiftRealTimeData,
  method: 'post',
  headers: { 'Content-Type': 'application/json'},
  data
 }).then(response => response.data.data)
}
//获取电梯列表
export function getLiftListgetByPage (data) {
 return request({
  url: api_config.elevator.getByPage,
  method: 'post',
  headers: { 'Content-Type': 'application/json'},
  data
 }).then(response => response.data.data)
}

